<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    request.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>河北民族师范学院学业预警系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${basePath}css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="${basePath}css/login.css"/>
    <script src="${basePath}js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layui-row">
        <div class="layui-col-md5">
            <img class="img_logo" src="${basePath}images/login_logo.png">
        </div>
        <div class="layui-col-md7">
            <div class="layadmin-user-login-main">
                <div class="layadmin-user-login-box layadmin-user-login-header">
                    <h2>比赛报名系统</h2>
                    <p>ACM爱好者协会</p>
                </div>
                <form class="layui-form" action="/LoginServlet" method="post">
                    <input type="hidden" name="action" value="login">
                    <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
                        <div class="layui-form-item">
                            <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
                            <input autocomplete="off" type="text" name="username" id="LAY-user-login-username" lay-verify="required" placeholder="用户名" class="layui-input" value="${username}">
                        </div>
                        <div class="layui-form-item">
                            <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
                            <input type="password" name="password" id="LAY-user-login-password" lay-verify="required" placeholder="密码" class="layui-input">
                        </div>

                        <div class="layui-form-item">
                            <button class="layui-btn layui-btn-fluid layui-bg-red" lay-submit="" lay-filter="LAY-user-login-submit">登 录</button>
                        </div>
                        <div class="layui-form-item">
                            <p style="text-align: center; color: red">${msg}</p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="layui-trans layadmin-user-login-footer">
        <p><span>© 2019</span><span>河北民族师范学院-大数据应用研发工作室-ACM爱好者协会</span><span>版权所有</span></p>
    </div>
</div>
<script src="${basePath}js/layui.all.js" type="text/javascript" charset="utf-8"></script>
<script>

</script>

</body>
</html>
